home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12609 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: ts1-018.jaxnet.com!user
  2. From: garyg@jax.jaxnet.com (Gary M. Greenberg)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Sort Function
  5. Date: 2 Apr 1996 00:14:49 GMT
  6. Organization: Southeast Network Services, Inc.
  7. Message-ID: <garyg-0104961904250001@ts1-018.jaxnet.com>
  8. References: <4jmq99$cqi@freenet-news.carleton.ca>
  9. NNTP-Posting-Host: ts1-018.jaxnet.com
  10.  
  11. In article <4jmq99$cqi@freenet-news.carleton.ca>,
  12. aq436@FreeNet.Carleton.CA (Jerry Boyd) wrote:
  13.  
  14. >  How would I WRITE a function (called sort3) that would 
  15. >  sort three integers (in assending order) by using pointers
  16. >  and NOT arrays?
  17. >   
  18.  
  19. First, you sit at the keyboard.
  20. Second, you work out the logic of the program.
  21. Third, you check your ideas against the ANSI C Standard functions to
  22.     determine that you aren't going to reinvent the wheel.
  23. Fourth, you use the keyboard.
  24. Fifth, you have a solution _or_ you post the minimal, compilable (sp?)
  25.     snippet of code that didn't do what you wanted it to.
  26.  
  27.  
  28. C'ya,
  29.  
  30. gary    /* the Sorcerer's Apprentice */
  31.     http:/jax.jaxnet.com/~garyg/main_page.html
  32.  
  33. Free Speech in America murdered by the Communications Decency Act.
  34.       (((U.S. Congress && Executive) == (Collective Moron)) == 1)
  35.